﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Windows;

namespace VisualWix
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            if (e.Args != null && e.Args.Length > 0)
            {
                new MainWindow(e.Args[0]).ShowDialog();
            }
            else
            {
                new MainWindow().ShowDialog();
            }
            this.Shutdown();
        }
    }
}
